package com.wu.service.impl;

import com.wu.pojo.vo.HistorysearchVo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wu.mappers.HistorysearchMapper;
import com.wu.pojo.Historysearch;
import com.wu.service.HistorysearchService;

import java.util.List;

/**
@author sun
@date 2022/3/21 - 7:40
*/
@Service
public class HistorysearchServiceImpl implements HistorysearchService{

    @Resource
    private HistorysearchMapper historysearchMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return historysearchMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Historysearch record) {
        return historysearchMapper.insert(record);
    }

    @Override
    public int insertSelective(Historysearch record) {
        return historysearchMapper.insertSelective(record);
    }

    @Override
    public Historysearch selectByPrimaryKey(Integer id) {
        return historysearchMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Historysearch record) {
        return historysearchMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Historysearch record) {
        return historysearchMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HistorysearchVo> findHistorysearch(Historysearch historysearch) {
        return historysearchMapper.findHistorysearch(historysearch);
    }

}
